<template>
  <div class="cards">
    <div class="ccc">
      <el-image
        style="width: 64px; height: 64px; border-radius: 20px"
        :src="require('@/assets/second/radar_total@2x.png')"
      />
      <div class="txts">
        <div>雷达总数（个）：</div>
        <div>{{ radarCount.allCount }}</div>
      </div>
    </div>
    <div class="ccc">
      <el-image
        style="width: 64px; height: 64px; border-radius: 20px"
        :src="require('@/assets/second/radar_using@2x.png')"
      />
      <div class="txts">
        <div>在用设备（个）：</div>
        <div>{{ radarCount.onlineCount }}</div>
      </div>
    </div>
    <div class="ccc">
      <el-image
        style="width: 64px; height: 64px; border-radius: 20px"
        :src="require('@/assets/second/radar_fail@2x.png')"
      />
      <div class="txts">
        <div>故障设备（个）：</div>
        <div>{{ radarCount.dieCount }}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "radar-top-stat",
  description: "雷达数据统计",
  props:{
    radarCount: {
      type: Object,
      default:()=>{}
    }
  }
}
</script>

<style lang="less" scoped>
.cards {
  //   height: 184px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  div {
    width: 32%;
    background: #fff;
    height: 100%;
  }
  .ccc {
    padding: 20px;
    height: 104px;
    display: flex;
    justify-content: space-between;
    .icon {
      padding: 20px;
      width: 140px;
      border-radius: 20px;
      background: #e8f0ff;
      margin-right: 20px;
    }
    .el-image {
      margin-right: 20px;
    }
    .txts {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      div {
        font-family: "HarmonyOS Sans SC";
        font-style: normal;
        width: 100%;
        display: flex;
        align-items: center;
        color: #333333;
      }
      > div:first-child {
        font-weight: 400;
        font-size: 16px;
      }
      > div:last-child {
        font-weight: 700;
        font-size: 18px;
      }
    }
  }
}
</style>
